<template>
  <div>
    <div class="item" v-for="(item,key) in list" :key="key">
      <div class="item-title border-bottom">
        <span class="item-title-icon"></span>
        {{item.title}}
      </div>
      <div v-if="item.child" class="item-child">
        <list :list="item.child"></list>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: 'List',
  props: {
    list: Array
  }
}
</script>
<style lang="stylus" scoped>
.item-title {
  line-height: 0.8rem;
  font-size: 0.32rem;
  padding: 0 0.32rem;
}

.item-child {
  padding: 0 0.2rem;
}
</style>
